﻿#if NETCore
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Longbow.Web.Controller
{
    [Route("[controller]/[action]")]
    [ApiController]
    [AllowAnonymous]
    public class RequestController : ControllerBase
    {
        [HttpGet]
        public ActionResult<bool> IsIPad()
        {
            return Request.IsIPad();
        }

        [HttpGet]
        public ActionResult<bool> IsMobileDevice()
        {
            return Request.IsMobileDevice();
        }
    }
}
#endif